package com.song.book.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author tonysong
 * @since 2024-04-29
 */
@TableName("book_order")
public class Order implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 订单号
     */
    @TableId("orderId")
    private String orderId;

    /**
     * 订单创建时间
     */
    private LocalDateTime createTime;

    /**
     * 订单总价格
     */
    private BigDecimal orderPrice;

    /**
     * 订单图书数量
     */
    private Integer amount;

    /**
     * 订单用户
     */
    private Integer userId;

    /**
     * 订单是否有效
     */
    private Integer enabled;

    /**
     * 订单状态
     */
    private Integer state;

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public BigDecimal getOrderPrice() {
        return orderPrice;
    }

    public void setOrderPrice(BigDecimal orderPrice) {
        this.orderPrice = orderPrice;
    }

    public Integer getAmount() {
        return amount;
    }

    public void setAmount(Integer amount) {
        this.amount = amount;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getEnabled() {
        return enabled;
    }

    public void setEnabled(Integer enabled) {
        this.enabled = enabled;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    @Override
    public String toString() {
        return "Order{" +
            "orderId = " + orderId +
            ", createTime = " + createTime +
            ", orderPrice = " + orderPrice +
            ", amount = " + amount +
            ", userId = " + userId +
            ", enabled = " + enabled +
            ", state = " + state +
        "}";
    }
}
